Delete the partition identified by {name}
from the database
identified by {id|name}
.
Request Headers | |
---|---|
Accept | The expected MIME type of the response. If the
format parameter is present, it takes precedence over the Accept header.
Supported values: application/xml , application/json .
|
MarkLogic server returns status code 204 (No Content).
manage-admin
role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage-admin
delete-data
is false, only configuration information is deleted.
If delete-data
is true, both configuration and the forest contents are deleted.
For details, see admin:forest-delete
. $ curl --anyauth --user user:password -X DELETE -i \ http://localhost:8002/manage/v2/databases/example-db/partitions/2011 ==> The partition named 2011 is deleted. The data it contained remains. MarkLogic Server responds with headers similar to the following: HTTP/1.1 204 No Content Server: MarkLogic Content-Length: 0 Connection: Keep-Alive Keep-Alive: timeout=5